home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7750 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: its.hooked.net!usenet
  2. From: raymac@hooked.net
  3. Newsgroups: comp.lang.c++
  4. Subject: MSVC for NT custom Toolbar - CTOOLBAR::SETSIZES
  5. Date: Mon, 19 Feb 1996 11:49:19 -0800
  6. Organization: Hooked Online Services
  7. Message-ID: <3128D43F.70F@hooked.net>
  8. NNTP-Posting-Host: also-17.ppp.hooked.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b6a (WinNT; I)
  13.  
  14. Please, help! I am using MSVC for NT 1.10.
  15. I have work for days trying to figure out want I have been doing
  16. wrong.  I created this really cool user interface with nice big
  17. buttons, not the standard MSVC size buttons that the AppWizard
  18. creates.  Using CToolBar::SetSizes I resize the buttons.  Now
  19. here is were the problems begin. The code compiles fine, but
  20. when I run it I get an error in BarTool.cpp (part of foundation
  21. class) on the line that says:
  22.         ASSERT(sizeButton.cx >= sizeImage.cx + 6);
  23.         ASSERT(sizeButton.cy >= sizeImage.cy + 6);
  24. I can choose to ignore two error messages but when the window
  25. opens the buttons are the right size and the bitmaps
  26. are totally misaligned.  I have toyed with everything and
  27. nothing seems to work.
  28.  
  29. Also, can I display 256 colors I can only display 16 now. If I
  30. can, how?  If I can't why?
  31.  
  32. Thanks.
  33.  
  34.  
  35. raymac@hooked.net
  36.